.time-range-selector {
  background: #fff;
  border-radius: 6px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.quick-ranges {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.quick-range-btn {
  padding: 6px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fff;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  white-space: nowrap;
}

.quick-range-btn:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
  color: #333;
}

.quick-range-btn.active {
  background: #1890ff;
  color: #fff;
  border-color: #1890ff;
}

.datetime-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.datetime-input {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 13px;
  color: #333;
  transition: all 0.2s ease;
  min-width: 0;
}

.datetime-input:focus {
  border-color: #1890ff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.separator {
  color: #999;
  font-size: 13px;
  padding: 0 4px;
}

.submit-btn {
  padding: 6px 16px;
  background: #1890ff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.submit-btn:hover {
  background: #40a9ff;
}

.submit-btn:active {
  background: #096dd9;
}

/* 响应式布局 */
@media (max-width: 480px) {
  .time-range-selector {
    padding: 8px;
  }

  .quick-ranges {
    gap: 4px;
    margin-bottom: 8px;
  }

  .quick-range-btn {
    padding: 4px 8px;
    font-size: 12px;
  }

  .datetime-inputs {
    flex-direction: column;
    gap: 6px;
  }

  .datetime-input {
    width: 100%;
  }

  .separator {
    display: none;
  }

  .submit-btn {
    width: 100%;
    margin-top: 4px;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .time-range-selector {
    background: #1f1f1f;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  }

  .quick-range-btn {
    background: #2f2f2f;
    color: #999;
    border-color: #404040;
  }

  .quick-range-btn:hover {
    background: #404040;
    color: #fff;
  }

  .quick-range-btn.active {
    background: #1890ff;
    color: #fff;
    border-color: #1890ff;
  }

  .datetime-input {
    background: #2f2f2f;
    color: #fff;
    border-color: #404040;
  }

  .datetime-input:focus {
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
  }

  .separator {
    color: #666;
  }

  .submit-btn {
    background: #1890ff;
  }

  .submit-btn:hover {
    background: #40a9ff;
  }

  .submit-btn:active {
    background: #096dd9;
  }
} 